package com.thesis.project.domain;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToOne;
import javax.persistence.Table;



/**
 * For a complete reference see 
 * <a href="http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/">
 * Hibernate Annotations Communit Documentations</a>
 */
@Entity
@Table(name = "algorithm")
public class Algorithm implements Serializable {

	private static final long serialVersionUID = -5527566248002296042L;
	
	@Id
	@Column(name = "algorithm_id")
	@GeneratedValue
	private Integer id;
	
	@Column(name = "algorithm_description")
	private String description;
	
	@Column(name = "algorithm_name")
	private String name;
	
	@Column(name = "algorithm_class_name")
	private String className;
	
//	@Column(name = "data_type_id")
//	private Integer dataTypeId;
//	

	@ManyToOne
	@JoinColumn(name = "data_type_id")
	private Datatype datatype;
	


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
//	public Integer getDataTypeID() {
//		return id;
//	}
//
//	public void setDataTypeID(Integer id) {
//		this.id = id;
//	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

//	public Integer getDataTypeId() {
//		return dataTypeId;
//	}
//
//	public void setDataTypeId(Integer dataTypeId) {
//		this.dataTypeId = dataTypeId;
//	}
	
	public Datatype getDatatype(){
		return datatype;
	}
	
	public void setDatatype(Datatype datatype){
		this.datatype = datatype;
	}


}

